<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="author" content="July">
    <title>京东-欢迎登录</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/login.css">
    <style>

    </style>
</head>

<body>
    <div class="content">
        <header>
            <div class="logo">
                <img src="../img/logo-201305-b.png" alt="">
                <img src="../img/l-icon.png" alt="">
            </div>
            <a href="">
                       <img src="../img/q-icon.png" alt="">
                       登录页面，调差问卷
                   </a>
        </header>
        <div class="banner">
            <div class="title">
                <p><img src="../img/icon-tips.png" alt="" style="padding-right:5px;">依据《网络安全法》，为保障您的账户安全和正常使用，请尽快完成手机号验证！ 新版
                    <a href="">《京东隐私政策》</a>已上线，将更有利于保护您的个人隐私。</p>
            </div>
            <div class="login-wrap">
                <div class="banner-bg">
                    <div class="login-form">
                        <ul class="nav nav-tabs" role="tablist">
                            <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">扫码登录</a></li>
                            <span style="color:#f4f4f4">|</span>
                            <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">账号登录</a></li>
                        </ul>
                        <div class="tab-content">
                            <div role="tabpanel" class="tab-pane active" id="home">
                                <div class="big">
                                <div class="slide">
                                    <img src="../img/code.png" alt="">
                                    </div>
                                    <div class="slide-none">
                                    <img src="../img/phone-orange.png" alt="">
                                    </div>
                                </div>
                                <div class="open">
                                    <p>打开<a href="" style="color:red">手机京东</a> &#X3000;扫描二维码</p>
                                </div>
                                <div class="coagent">
                                    <div>
                                        <i class="out"></i><span>免输入</span>
                                    </div>
                                    <div>
                                        <i class="fast"></i><span>更快</span>
                                    </div>
                                    <div>
                                        <i class="save"></i><span>更安全</span>
                                    </div>
                                </div>
                            </div>
                            <div role="tabpanel" class="tab-pane" id="profile">
                                <form class="form-horizontal" action="/api/login" method="post">
                                    <div class="form-group group">
                                        <label class="sr-only" for="username">Amount (in dollars)</label>
                                        <div class="input-group">
                                            <div class="input-group-addon"><span class="glyphicon glyphicon-user" style="color:#ccc"></span></div>
                                            <input type="text" class="form-control" name="username" id="username" placeholder="邮箱/用户名/已验证手机">
                                        </div>
                                    </div>
                                    
                                    <div class="form-group group">
                                        <label class="sr-only" for="userpsw">Amount (in dollars)</label>
                                        <div class="input-group">
                                            <div class="input-group-addon"><span class="glyphicon glyphicon-lock" style="color:#ccc"></span></div>
                                            <input type="password" class="form-control" name="userpsw" id="userpsw" placeholder="密码">
                                        </div>
                                    </div>
                                    <div class="form-group group">
                                        <a href="" style="float:right;color:#666">忘记密码</a>
                                    </div>
                                    <div class="form-group group">
                                    <button type="submit" class="btn btn-danger form-control">登录</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="tail">
                            <div>
                                <a href="">
                                <b class="qq-icon"></b>
                                <span>QQ</span>
                            </a>
                                <span style="color:#d5ccd5">|</span>
                                <a href="">
                                <b class="weixin-icon"></b>
                                <span>微信</span>
                            </a>
                            </div>
                            <a href="">
                                <b class="regist-icon"></b>
                                <span style="color:red;font-size:16px;">立即注册</span>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </div>
        <footer>
            <div class="foot">
            <a>关于我们</a>&nbsp; |&nbsp; 
            <a>联系我们</a>&nbsp; |&nbsp; 
            <a>人才招聘</a>&nbsp; |&nbsp; 
            <a>商家入驻</a>&nbsp; |&nbsp; 
            <a>广告服务</a>&nbsp; |&nbsp; 
            <a>手机京东</a>&nbsp; |&nbsp; 
            <a>友情链接</a>&nbsp; |&nbsp; 
            <a>销售联盟</a>&nbsp; |&nbsp; 
            <a>京东社区</a>&nbsp; |&nbsp; 
            <a>京东公益</a>&nbsp; |&nbsp; 
            <a>English Site</a>
            </div>
            <p>Copyright©2004-2016  京东JD.com 版权所有 </p>
        </footer>
    </div>
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script>
        $('.big').hover(
            function () {
                $(this).finish().animate({
                    left: '40px'
                })
                $('.slide-none').css('display','block');
            },
            function () {
                $(this).finish().animate({
                    left:'0'
                })
                $('.slide-none').css('display','none');
            }
            )
        $('form').submit(function(e){
            e.preventDefault();
            $.post(this.action,$(this).serialize(),(data)=>{
                if (data.code=='success') {
                    location.href='/';
                }
            })
        })
    </script>
</body>

</html>